﻿
//Author: 张亚涛
//createtime:2015-12-15 23:07:57
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public partial class Member
    {
        public Member()
        { }
        public Member(IDataReader reader)
        {
            _memberID = long.Parse(reader["MemberID"].ToString());
            if (reader["OpenID"] != DBNull.Value)
            {
                _openID = reader["OpenID"].ToString();
            }
            if (reader["Mobile"] != DBNull.Value)
            {
                _mobile = reader["Mobile"].ToString();
            }
            if (reader["TrueName"] != DBNull.Value)
            {
                _trueName = reader["TrueName"].ToString();
            }
            if (reader["NickName"] != DBNull.Value)
            {
                _nickName = reader["NickName"].ToString();
            }
            if (reader["Sex"] != DBNull.Value)
            {
                _sex = reader["Sex"].ToString();
            }
            if (reader["Age"] != DBNull.Value)
            {
                _age = reader["Age"].ToString();
            }
            if (reader["City"] != DBNull.Value)
            {
                _city = reader["City"].ToString();
            }
            if (reader["HeadImgUrl"] != DBNull.Value)
            {
                _headImgUrl = reader["HeadImgUrl"].ToString();
            }
            if (reader["PayWord"] != DBNull.Value)
            {
                _payWord = reader["PayWord"].ToString();
            }
            if (reader["IsLock"] != DBNull.Value)
            {
                _isLock = int.Parse(reader["IsLock"].ToString());
            }
            if (reader["CardNumber"] != DBNull.Value)
            {
                _cardNumber = reader["CardNumber"].ToString();
            }
        }

        #region 数据库字段
        private long? _memberID;
        private string _openID;
        private string _mobile;
        private string _trueName;
        private string _nickName;
        private string _sex;
        private string _age;
        private string _city;
        private string _headImgUrl;
        private string _payWord;
        private int? _isLock;
        private string _cardNumber;
        #endregion

        #region 字段属性
        /// <summary>
        /// 会员ID
        /// </summary>
        public long? MemberID
        {
            set { _memberID = value; }
            get { return _memberID; }
        }
        /// <summary>
        /// 微信标识
        /// </summary>
        public string OpenID
        {
            set { _openID = value; }
            get { return _openID; }
        }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile
        {
            set { _mobile = value; }
            get { return _mobile; }
        }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string TrueName
        {
            set { _trueName = value; }
            get { return _trueName; }
        }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName
        {
            set { _nickName = value; }
            get { return _nickName; }
        }
        /// <summary>
        /// 性别
        /// </summary>
        public string Sex
        {
            set { _sex = value; }
            get { return _sex; }
        }
        /// <summary>
        /// 年龄
        /// </summary>
        public string Age
        {
            set { _age = value; }
            get { return _age; }
        }
        /// <summary>
        /// 城市
        /// </summary>
        public string City
        {
            set { _city = value; }
            get { return _city; }
        }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string HeadImgUrl
        {
            set { _headImgUrl = value; }
            get { return _headImgUrl; }
        }
        /// <summary>
        /// 支付 密码
        /// </summary>
        public string PayWord
        {
            set { _payWord = value; }
            get { return _payWord; }
        }
        /// <summary>
        /// 锁定标识(0：正常；1：锁定)
        /// </summary>
        public int? IsLock
        {
            set { _isLock = value; }
            get { return _isLock; }
        }
        /// <summary>
        /// 会员卡号
        /// </summary>
        public string CardNumber
        {
            set { _cardNumber = value; }
            get { return _cardNumber; }
        }
        #endregion
    }
}